
#ifndef __WINLOGIN_H__
# define __WINLOGIN_H__

# include <QtGui>

# define ICONE_WP_LOGIN "./Images/twitter_wp_login.png"
# define BUTTON_LOGIN	"./Images/twitter_btn_login.png"

class WinLogin : public QFrame
{
	Q_OBJECT

public:
	WinLogin();
	~WinLogin();
	QPushButton	*getButton() const;

	QString		getLogin() const;
	QString		getPassword() const;

	QString		getPHost() const;
	QString		getPPort() const;
	QString		getPUsername() const;
	QString		getPPassword() const;

	void		showLoading() const;
	void		hideLoading() const;

public slots:
	void		eraseContent();
	void		manageProxy();

private:
	QLineEdit	*_login;
	QLineEdit	*_password;

	QLineEdit	*_host;
	QLineEdit	*_port;
	QLineEdit	*_username;
	QLineEdit	*_pw;

	QPushButton	*_button;
	QPushButton	*_btnPlus1;
	QPushButton	*_btnPlus2;
	QFrame		*_proxyFrame;

	QLabel		*_loading;
};

#endif